package com.open4cn.simulator.core.connector.serialport;

/**
 * @author yinxiaopeng
 * @version 1.0.0
 * @company 致景科技
 * @department 飞梭BU/研发
 * @description 停止位枚举
 * @Email yinxiaopeng@zj.tech
 * @date 2022-06-10 18:56
 */
public enum StopbitsEnum {

    ONE(1, "ONE"),
    TWO(2, "TWO"),
    THREE(3, "THREE"),
    ;

    private Integer code;
    private String value;

    StopbitsEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }
}
